<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group" hidden>
        <label class="control-label col-xs-12 col-sm-2">{:__('Teacher_class_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-teacher_class_id" data-rule="required" data-source="teacher_class/index" data-field="id" class="form-control selectpage" name="row[teacher_class_id]" type="text" value="{$row.teacher_class_id|htmlentities}">
        </div>
    </div>
    {if $period_set == 1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Week_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="weekList" item="vo"}
                <label for="row[week_date]-{$key}"><input id="row[week_date]-{$key}" name="row[week_date]" type="radio" value="{$key}" {in name="key" value="$weekday"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>
    {else}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Week_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-week_date" class="form-control" name="row[week_date]" type="date">
        </div>
    </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Time_start')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-time_start" class="form-control" name="row[time_start]" type="time" value="{$row.time_start|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Class_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-class_num" class="form-control" name="row[class_num]" type="number" value="{$row.class_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
